package learningThread.api.stopApi.sleepStop;

public class TestSleepStop {

    public static void main(String[] args) {
        try {
            //继承Thread
            MyThread thread = new MyThread();
            thread.start();
            Thread.sleep(200);
            thread.interrupt();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
